<template>
  <div>
      <van-nav-bar
         left-arrow
        class="app-nav-bar"
        title="卫生检查详情页"
        @click-left="$router.back()"
      />
      <van-cell-group>
        <van-cell title="检查卫生日期:" :value="tableData.checkDate" />
        <van-cell title="宿舍:" :value="tableData.dorAddress" />
        <van-cell title="卫生扣分项:" :value="tableData.deductOptions" />
        <van-cell title="扣总分:" :value="tableData.totalPdeduct" />
        <van-cell title="总得分:" :value="tableData.totalScore" />
        <van-cell title="描述信息" :value="tableData.remark" />
        <van-cell title="录入员:" :value="tableData.createBy" />
        <van-cell title="录入时间:" :value="tableData.createTime" />
        
      </van-cell-group>
  </div>
</template>

<script>
// getHygieneById
export default {
    data(){
        return{
            tableData:[]
        }
    },
    methods:{
        async getHygieneById(){
            var {data:res} = await this.$axios({
                url:this.$location.getHygieneById,
                params:{
                    id:this.$route.params.id
                }
            })
            this.tableData = res.data;
        }
    },
    created(){
        this.getHygieneById();
    }
}
</script>

<style lang="less" scoped>
    /deep/ .app-nav-bar{
        background-color: #35d299;
        .van-nav-bar__title{
            color: #fff;
        }
        .van-icon{
            color: #fff;
            
        }
    }
</style>